package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * @Author:Domen
 * @Date:2023/11/19 15:28
 */

@Data
public class Category {
    private Integer id;
    private String name;
    private String remark;
    private Integer pid;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate updateTime;

    private List<Category> children;

}
